#!/usr/bin/python2

import pygame

from utils import Constants


class Finish(pygame.sprite.Sprite):

    def __init__(self, x, y):
        # Initialize parent
        pygame.sprite.Sprite.__init__(self)
        # Create singleton group for sprite and add sprite to group
        self.__group = pygame.sprite.GroupSingle()
        self.add(self.__group)
        # Set the image and bounds
        self.image = pygame.surface.Surface((Constants.GRID_SIZE, ) * 2)
        self.image.fill(pygame.color.Color(Constants.FINISH_COLOR))
        self.rect = self.image.get_rect()
        self.rect.x = x
        self.rect.y = y

    def draw(self, surface):
        self.__group.draw(surface)

    def group(self):
        return self.__group

    def update(self, delta, rotation, groups):
        pass
